import {get, post} from './base'

export const aa = params => {
  return get('/admin/article/list', params)
}
export const bb = params => {
  return post('/admin/article/add', params)
}

export const LogIn = params => {
  return post('/admin/user/login', params)
}
export const LogOut = params => {
  return get('/admin/user/logout', params)
}
export const getTagList = params => {
  return get('/admin/tag/list', params)
}
export const deleteTag = params => {
  return post('/admin/tag/remove', params)
}
export const AddTag = params => {
  return post('/admin/tag/add', params)
}

export const getLinkList = params => {
  return get('/admin/link/list', params)
}
export const deleteLink = params => {
  return post('/admin/link/remove', params)
}
export const AddLink = params => {
  return post('/admin/link/add', params)
}
export const getAbout = params => {
  return get('/admin/info/all', params)
}

export const UpdateAbout = params => {
  return post('/admin/about/update', params)
}
export const UpdateBasicInfo = params => {
  return post('/admin/info/update', params)
}

export const getArticleList = params => {
  return get('/admin/article/list', params)
}
export const addArticle = params => {
  return post('/admin/article/add', params)
}
export const updateArticle = params => {
  return post('/admin/article/update', params)
}
export const removeArticle = params => {
  return post('/admin/article/remove', params)
}
export const readArticle = params => {
  return get('/admin/article/read', params)
}

export const UploadFile = params => {
  return post('/upload', params)
}
